Hello,
We are migrating our product from the v1 API to the v2 API.
I am trying to access the full details for an incident triggered by an email, namely the body of said email. In v1, this was done by retrieving the channel for the triggering log_entry. If the channel was of type 'email'
, then it would have a property called body
.
The following documentation indicates that this has not changed:
https://support.pagerduty.com/docs/retrieve-trigger-event-data-using-the-api
However, when I get a log_entry via the v2 API, the only properties on the channel are type
('email'
) and summary
. This is the response from one of the log_entries:
{ log_entry:
{ id: 'Q03T6MX7YXH4F8',
type: 'trigger_log_entry',
summary: 'Triggered through email',
self: %NEW_USER_LINK_REDACTED%,
html_url: %NEW_USER_LINK_REDACTED%,
created_at: '2016-06-19T23:37:37Z',
agent:
{ id: 'PWC8S91',
type: 'generic_email_inbound_integration_reference',
summary: 'Email',
self: %NEW_USER_LINK_REDACTED%,
html_url: %NEW_USER_LINK_REDACTED% },
channel:
{ type: 'email',
summary: %EMAIL_SUBJECT_REDACTED% },
service:
{ id: 'PHWRN7N',
type: 'service_reference',
summary: 'support@stainlesscode.com',
self: %NEW_USER_LINK_REDACTED%,
html_url: %NEW_USER_LINK_REDACTED% },
incident:
{ id: 'P8BG8RW',
type: 'incident_reference',
summary: '[#44] %EMAIL_SUBJECT_REDACTED%',
self: %NEW_USER_LINK_REDACTED%,
html_url: %NEW_USER_LINK_REDACTED% },
teams: [],
contexts: [],
event_details: { description: %EMAIL_SUBJECT_REDACTED% } } }
Is this bug? If not, how do I go about getting the email body for a particular incident?
Thank you.